$("#active").click(function() {
	$("#active").attr("disabled", "true");
	$.post("/Active/Query", 
		$("#basicOptionsForm").serialize()
	, function(data) {
		if (data.error == "1") {
			toastr["warning"](data.msg);
			$("#active").removeAttr("disabled");
		} else if (data.error == "200") {
			toastr["success"]("激活成功");
            $("#active").removeAttr("disabled");
            $("#active_code").text(data.active_code);
		}else{
			toastr["warning"]("未知错误");
			$("#active").removeAttr("disabled");
		}
	});
})